package mythread.demo001;

public class MyThread14_4 {

    private String uuname="A";
    private String upwd="BB";

    public void setVal(String name,String pwd){
        uuname=name;
        if(Thread.currentThread().getName().equals("a")){
            Thread.currentThread().suspend();
        }
        upwd=pwd;
    }
    public  void printSS(){
        System.out.println("name="+uuname+",pwd="+upwd);
    }

}
